// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'RelocationId',
        footer: "Foots",
        cnName: '库存调拨',
        name: 'relocation',
        url: "/relocation/",
        sortName: "RelocationId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"TransferNo":"","TransferName":"","TransferType":"","DispatchfromWarehouse":"","Inbound":"","RelocationDate":"","Remarks":"","TransferState":""};
    const editFormOptions = [[{"title":"转移单编号","field":"TransferNo","type":"text"},
                               {"title":"转移单名称\r\n","field":"TransferName","type":"text"},
                               {"dataKey":"转移类型","data":[],"title":"转移单类型","required":true,"field":"TransferType","type":"select"}],
                              [{"dataKey":"仓库建模","data":[],"title":"移出仓库","field":"DispatchfromWarehouse","type":"select"},
                               {"dataKey":"仓库建模","data":[],"title":"移入仓库","field":"Inbound","type":"select"},
                               {"title":"转移日期","required":true,"field":"RelocationDate","type":"date"}],
                              [{"title":"备注","field":"Remarks","type":"textarea"},
                               {"dataKey":"状态2","data":[],"title":"状态","required":true,"field":"TransferState","type":"select"}]];
    const searchFormFields = {"TransferNo":"","TransferName":"","TransferType":"","DispatchfromWarehouse":"","Inbound":"","RelocationDate":"","Remarks":"","TransferState":""};
    const searchFormOptions = [[{"title":"转移单编号","field":"TransferNo","type":"="},{"title":"转移单名称\r\n","field":"TransferName","type":"like"},{"dataKey":"转移类型","data":[],"title":"转移单类型","field":"TransferType","type":"="}],[{"dataKey":"仓库建模","data":[],"title":"移出仓库","field":"DispatchfromWarehouse","type":"="}],[{"dataKey":"仓库建模","data":[],"title":"移入仓库","field":"Inbound","type":"="},{"title":"转移日期","field":"RelocationDate","type":"date"}],[{"title":"备注","field":"Remarks","type":"textarea"},{"dataKey":"状态2","data":[],"title":"状态","field":"TransferState","type":"select"}]];
    const columns = [{field:'RelocationId',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'TransferNo',title:'转移单编号',type:'string',width:110,align:'left',sort:true},
                       {field:'TransferName',title:'转移单名称',type:'string',width:110,align:'left'},
                       {field:'TransferType',title:'转移单类型',type:'int',bind:{ key:'转移类型',data:[]},width:110,require:true,align:'left'},
                       {field:'DispatchfromWarehouse',title:'移出仓库',type:'int',bind:{ key:'仓库建模',data:[]},width:110,align:'left'},
                       {field:'Inbound',title:'移入仓库',type:'int',bind:{ key:'仓库建模',data:[]},width:110,align:'left'},
                       {field:'RelocationDate',title:'转移日期',type:'datetime',width:150,require:true,align:'left',sort:true},
                       {field:'Remarks',title:'备注',type:'string',width:220,align:'left'},
                       {field:'TransferState',title:'状态',type:'int',bind:{ key:'状态2',data:[]},width:110,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}